<style>
    .form-inline .form-control,.fieldlist dd input:first-child{
        width: 100%;
    }
    .fieldlist dd ins{
        width: 119px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订单编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-field="order_no" disabled id="c-order_id" data-rule="required" min="0" data-source="statistics/order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trademark_printing')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly id="c-trademark_printing" data-rule="required" class="form-control" name="row[trademark_printing]" type="text" value="{$row.trademark_printing|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Abbreviation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-abbreviation" class="form-control" name="row[abbreviation]" type="text" value="{$row.abbreviation|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Colour_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input disabled id="c-colour_id" data-rule="required" min="0" data-source="other/colour/index" class="form-control selectpage" name="row[colour_id]" type="text" value="{$row.colour_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quantity" data-rule="required,integer,digits,diyname" min="0" class="form-control" name="row[quantity]" type="number" value="{$row.quantity|htmlentities}">
            <input id="c-quantity-id" data-rule="required" min="0" class="form-control hidden" value="{$row.id|htmlentities}">
            <span class="tips-error text-danger " style="display: none">您的订单数量已超单，请确认是否修改</span>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Cumulative_quantity')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-cumulative_quantity" min="0" class="form-control" name="row[cumulative_quantity]" type="number" value="{$row.cumulative_quantity|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序收取详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-12" style="padding: 0">
                <dl class="fieldlist" data-template="basictpl" data-name="row[process_detail]">
                    <dd>
                        <ins style="width: 50%">工序</ins>
                        <ins >工序累计收取量</ins>
                        <ins >工序进度(%)</ins>
                    </dd>
                    <textarea name="row[process_detail]" class="form-control hidden" cols="30" rows="5">
                        {$row.process_detail}
                    </textarea>
                </dl>
               <script id="basictpl" type="text/html">
                    <dd class="form-inline">
                        <ins style="width: 50%">
                            <input readonly type="hidden" name="<%=name%>[<%=index%>][process_attribute]" class="form-control" value="<%=row.process_attribute%>" size="10"/>
                            <input readonly class="form-control" value="<%=row.process_name%>" size="10"/>
                        </ins>
                        <ins ><input readonly type="text" name="<%=name%>[<%=index%>][quantity]" class="form-control" value="<%=row.quantity%>" /></ins>
                        <ins ><input readonly type="text" name="<%=name%>[<%=index%>][schedule]" class="form-control" value="<%=row.schedule%>"/></ins>
                    </dd>
                </script>
            </div>
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="radio">-->
<!--            {foreach name="statusList" item="vo"}-->
<!--            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>-->
<!--            {/foreach}-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
